package com.taldh.design.patterns.adapter.impl;

/**
 * 三角插座，两脚电源线之间的适配器
 * date 2020/6/2
 *
 * @author 袁小黑
 * @version 1.0.0
 **/

public class PowerAdapter extends TwoProngedOutlet {

    private ThreeLeggedPlug threeLeggedPlug;

    public PowerAdapter() {
        threeLeggedPlug = new ThreeLeggedPlug();
    }

    @Override
    public void inputElectricPower() {
        threeLeggedPlug.outputPower();
    }
}
